#include "Sort.h"

void TestInsertSort(void)
{
	int a[] = { 2, 7, 1, 2 , 4, 6, 3, 5 };

	PrintArray(a, sizeof(a) / sizeof(a[0]));
	InsertSort(a, sizeof(a) / sizeof(a[0]));
	PrintArray(a, sizeof(a) / sizeof(a[0]));
}

void TestShellSort1(void)
{
	int a[] = {2, 7, 1, 2 , 4, 6, 3, 5};

	PrintArray(a, sizeof(a) / sizeof(a[0]));
	ShellSort1(a, sizeof(a) / sizeof(a[0]));
	PrintArray(a, sizeof(a) / sizeof(a[0]));
}

void TestShellSort2(void)
{
	int a[] = { 2, 7, 1, 2 , 4, 6, 3, 5 };

	PrintArray(a, sizeof(a) / sizeof(a[0]));
	ShellSort2(a, sizeof(a) / sizeof(a[0]));
	PrintArray(a, sizeof(a) / sizeof(a[0]));
}

int main()
{
	TestInsertSort();
	putchar('\n');
	TestShellSort1();
	putchar('\n');
	TestShellSort2();
	
	return 0;
}